
// F. Chaxel 2010

#ifndef MOTORS_H
#define MOTORS_H


#include "../ThreadObject.h"

class Motors:public ThreadObject{
	
	private :
		static Motors* _instance;
		int sl, sr;
		long pl, pr;

	public:
		Motors();
		virtual ~Motors();
		void SetSpeed (unsigned int Left, unsigned int Right);
		void Stop();
		void GetPos(long *Left, long *Right);
		int GetBattery();
		void InitPosition();
		
		virtual void Run();
};

#endif
